home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / lha101u.zip / HEADER.DOC < prev    next >
Text File  |  1992-04-24  |  6KB  |  177 lines

  1. /* header.doc (In Japanese) */
  2. LHa for UNIX $@$G;HMQ$5$l$k%X%C%@9=B$$K$D$$$F(J    Mar. 2, 1992, Masaru Oki.
  3.  
  4. ----------------------------------------------------------------
  5.     $@K\(J$@%P!<%8%g%s$G$O2aEOE*$JA<CV$H$7$F(J3$@<oN`$N%X%C%@7A<0$rMQ0U$7!"(Jlevel-1
  6.   $@$r4{DjCM$H$7$F$$$^$9$,!">-MhE*$K(J$@$O%Q%9L>$NJ8;z?t$K@)8B$N$J$$(J level-2$@$K(J
  7.   $@E}0l$9$kJ}?K$G$9!#(J
  8.  
  9.  
  10.   A. $@%X%C%@$N;EMM(J
  11.  
  12. -----------------------------------------------------------------------------
  13.         level-0                 level-1                 level-2
  14. -----------------------------------------------------------------------------
  15.       1 header size           1 header size           2 total header size
  16.       1 header sum            1 header sum
  17.       5 method ID             5 method ID             5 method ID
  18. $@4p(J    4 packed size           4 skip size             4 packed size
  19.       4 original size         4 original size         4 original size
  20. $@K\(J    2 time                  2 time                  4 time(UNIX type)
  21.       2 date                  2 date
  22. $@It(J    1 attribute             1 0x20                  1 RESERVED
  23.       1 level 0x00            1 level 0x01            1 level 0x02
  24. $@J,(J    1 name length           1 name length
  25.       ? pathname              ? filename
  26.       2 file crc              2 file crc              2 file crc
  27.       . ........              1 OS ID 'U'             1 OS ID 'U'
  28.                               . ........
  29.                               2 next-header size      2 next-header size
  30.     *************************************************************************
  31.      24 + ?                  27 + ?                  26
  32. -----------------------------------------------------------------------------
  33. $@3H(J                            1 ext-type              1 ext-type
  34. $@D%(J                            . ........              . ........
  35. $@It(J                            2 next-header size      2 next-header size
  36. $@J,(J
  37. -----------------------------------------------------------------------------
  38.  
  39.     a. $@%X%C%@$N<oN`(J
  40.  
  41.       level-0 $@%X%C%@(J
  42.           $@=>Mh$N(J LHarc, LArc $@$HF1$87A<0$G$9!#%G%#%l%/%H(J$@%jL>$N6h@Z$j$O(J '\'
  43.         $@$rI8=`$H$7$F$$$^$9!#(J
  44.  
  45.       level-1 $@%X%C%@(J
  46.           $@4{DjCM$G$3$N%X%C%@(J$@$,:n@.$5$l$^$9!#(J-x0 $@$G:n@.$5$l$?(J -lh0- $@$N=q8K(J
  47.         $@$O(J LHarc $@$G2rE`2DG=$G$9$,!"2rE`;~$K(J CRC $@%A%'%C(J$@%/$O9T$o$l$^$;$s!#(J
  48.  
  49.       level-2 $@%X%C%@(J
  50.           $@D9$$%U%!%$%kL>$r%5%]!<%H$9$k$?$a$N%X%C%@$G$9!#>-(J$@MhE*$K$OK\%X%C(J
  51.         $@%@$rI8=`$H$7$?$$$N$G!"(JLH $@4XO"$N%f!<%F%#%j%F%#$r:n@.$5$l$kJ}$O:#8e(J
  52.         $@=`(J$@5r$7$F$/$@$5$k$h$&$K$*4j$$$7$^$9!#(J
  53.  
  54.     b. $@E`7k!&2rE`2DG=$J(J method ID $@$K$D$$$F(J
  55.  
  56.       * $@$O:n@.2DG=(J$@$J(J method
  57.  
  58.       -lh0- * no compression
  59.  
  60.       -lh1- * 4k sliding dictionary(max 60 bytes) + dynamic Huffman
  61.               + fixed encoding of position
  62.  
  63.       -lh2-   8k sliding dictionary(max 256 bytes) + dynamic Huffman
  64.  
  65.       -lh3-   8k sliding dictionary(max 256 bytes) + static Huffman
  66.  
  67.       -lh4- * 4k sliding dictionary(max 256 bytes) + static Huffman
  68.               + improved encoding of position and trees
  69.  
  70.       -lh5- * 8k sliding dictionary(max 256 bytes) + static Huffman
  71.               + improved encoding of position and trees
  72.  
  73.       -lzs-   2k sliding dictionary(max 17 bytes)
  74.  
  75.       -lz4-   no compression
  76.  
  77.       -lz5-   4k sliding dictionary(max 17 bytes)
  78.  
  79.     c. OS ID $@$K$D$$$F(J
  80.  
  81.       $@8=:_$N$H$3$m!"0J2<$N(J ID $@$rM=Ls$7$F$$$^$9!#(J
  82.  
  83.         MS-DOS  'M'
  84.         OS/2    '2'
  85.         OS9     '9'
  86.         OS/68K  'K'
  87.         OS/386  '3'
  88.         HUMAN   'H'
  89.         UNIX    'U'
  90.         CP/M    'C'
  91.         FLEX    'F'
  92.         Mac     'm'
  93.         Runser  'R'
  94.  
  95.   B. $@3HD%ItJ,(J
  96.  
  97.     a. OS $@Hs0MB8(J (0x00 - 0x3f)
  98.  
  99.         common header
  100.          1 0x00
  101.          2 header crc
  102.        ( 1 information )
  103.          2 next-header size
  104.  
  105.         filename header
  106.          1 0x01
  107.          ? filename
  108.          2 next-header size
  109.  
  110.         dirname header
  111.          1 0x02
  112.          ? dirname
  113.          2 next-header size
  114.  
  115.         comment header
  116.          1 0x3f
  117.          ? comments
  118.          2 next-header size
  119.  
  120. ($@0J>e!"5H:j;a$N(J lhx.doc $@$h$j(J)
  121. ----------------------------------------------------------------
  122. LHa for UNIX $@3HD%%X%C%@;EMM(J
  123.  
  124. $@!&0MB8>pJs$N<oN`(J($@3JG<$9$Y$->pJs(J)
  125.     UNIX $@$K0MB8$9$k>pJs$G5-O?$9$Y$-$O0J2<$N$b$N$G$"$k!#(J
  126.     (1) $@%Q!<%_%C%7%g%s(J
  127.     (2) GID,UID
  128.     (3) $@%0%k!<%W(J$@L>!"%f!<%6L>(J
  129.     (4) $@:G=*JQ99;~9o(J(UNIX time)
  130.  
  131. $@!&0MB8>pJs$N%?%$%W(J(ext-type)
  132.       $@3HD%%X%C%@$N@hF,(J1$@%P%$%H(J$@$K$O>pJs$,2?$r<($9$b$N(J
  133.     $@$+<1JL$9$k$?$a$NCM$,3JG<$5$l$F$$$k!#(J
  134.     UNIX$@0MB8>pJs$H$7$F(J 0x50 - 0x54 $@$r;HMQ(J$@$9$k!#(J
  135.  
  136. $@!&0MB8>pJs$N3JG<J}K!(J
  137.     $@>e5-(J (1) - (4) $@$r$=$l$>$lJL$N%?%$%W$H$9$k!#(J
  138.  
  139.     (1)$@%Q!<%_%C%7%g%s(J
  140.         size    $@CM(J
  141.         1    0x50
  142.         2    $@%Q!<%_%C%7%g%sCM(J
  143.         2    next-header size
  144.  
  145.     (2)GID,UID
  146.         size    $@CM(J
  147.         1    0x51
  148.         2    GID
  149.         2    UID
  150.         2    next-header size
  151.  
  152.     (3)-1 $@%0%k!<%WL>(J
  153.         1    0x52
  154.         ?    $@%0%k!<%WL>J8;zNs(J
  155.         2    next-header size
  156.  
  157.     (3)-2 $@%f!<%6L>(J
  158.         1    0x53
  159.         ?    $@%f!<%6L>J8;zNs(J
  160.         2    next-header size
  161.  
  162.     (4) $@:G=*JQ99;~(J$@9o(J (for header_level1)
  163.         1    0x54
  164.         4    UNIX $@;~4V(J
  165.         2    next-header size
  166.  
  167. $@!&(JLHa for UNIX ver 1.00 $@$G$N(J$@<BAu(J
  168.     $@>e5-(J(3)$@$r%5%]!<%H$7$F$$$J$$!#(J
  169.     (3)$@$N%0%k!<%WL>!"%f!<%6L>$N>pJs$r4^$`=q8K$r:n@.$9$k$3$H(J
  170.     $@$O$J(J$@$/!"E83+;~$K$OL5;k$9$k!#(J
  171.     $@$^$?!"(J(4)$@$O%X%C%@%l%Y%k(J1$@$N=q8K$K$N$_4^$^$l$k!#(J
  172. ----------------------------------------------------------------
  173. $@0J>e!#(J
  174.  
  175. $@2-(J   $@>!(J (Masaru Oki)
  176. oki@wbg.telcom.oki.co.jp
  177.